<template>
  <div class="delDig">
    <el-dialog v-model="delVisible" align-center :show-close="false">
      <template #header="{ titleClass }">
        <div class="my-header">
          <h4 :id="titleId" :class="titleClass">删除提示</h4>
          <img src="/src/assets/images/project-control/redTips.png" alt="" />
        </div>
      </template>
      <span>此操作会彻底删除该项承诺书，是否执行？</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="delVisible = false">取消</el-button>
          <el-button type="primary" @click="delClick"> 删除 </el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
import { ref } from 'vue';
const delVisible = ref(false);
const delClick = () => {
  console.log('删除接口');
};
defineExpose({
  delVisible,
});
</script>

<style lang="scss" scoped>
.delDig {
  :deep(.el-dialog__header) {
    height: 48px;
    background: #f6f7fb;
    margin-right: 0px;
    padding: 0;

    border-bottom: 1px solid #d9dce4;

    .my-header {
      height: 48px;
      display: flex;
      align-items: center;
      text-indent: 16px;
      font-size: 16px;
      font-weight: 500;
      color: #25292c;
      img {
        margin-left: 8px;
      }
    }
  }
  :deep(.el-dialog__body) span {
    font-size: 14px;
    font-family: SourceHanSansSC-Regular, SourceHanSansSC;
    font-weight: 400;
    color: #25292c;
  }
  :deep(.el-dialog__footer) {
    border-top: none;
    height: 48px;
    padding-top: 0;
    padding-right: 16px;
    .el-button {
      width: 80px;
      height: 32px;
      border-radius: 3px;
      line-height: 32px;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
    }
    .el-button:nth-child(1) {
      border: 1px solid #2e72ef;
      color: #2e72ef;
      background: white;
    }
    .el-button:nth-child(2) {
      background: #2e72ef;
      color: white;
    }
  }
}
</style>
